package message.test.repository;

import message.test.domain.Demo;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

/**
 * .
 *
 * @author sunhao(sunhao.java@gmail.com)
 * @version V1.0, 15/6/26 上午10:26
 */
@Repository
public interface DemoDAO {
    Demo load(@Param("pkId") Long pkId);

    int save(Demo demo);

    Page<Demo> list(Pageable pageable);
}
